﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using DevPhoneToolkitSample.Data;
using Microsoft.Phone.Controls;

namespace DevPhoneToolkitSample.Samples
{
    public partial class ListPickerPageSample : PhoneApplicationPage
    {
        public ListPickerPageSample()
        {
            InitializeComponent();

            var data = new ModelFruits[]
            {
                new ModelFruits{ Photo = new Uri("/Data/Fruits/apple_over.png", UriKind.Relative), Name = "Apple"},
                new ModelFruits{ Photo = new Uri("/Data/Fruits/bananas_over.png", UriKind.Relative), Name = "Banana"},
                new ModelFruits{ Photo = new Uri("/Data/Fruits/cherry_over.png", UriKind.Relative), Name = "Cherry"},
                new ModelFruits{ Photo = new Uri("/Data/Fruits/grapes_over.png", UriKind.Relative), Name = "Grape"},
                new ModelFruits{ Photo = new Uri("/Data/Fruits/pineapple_over.png", UriKind.Relative), Name = "Pineapple"},
                new ModelFruits{ Photo = new Uri("/Data/Fruits/strawberry_over.png", UriKind.Relative), Name = "Strawberry"},
            };
            Lpk1.ItemsSource = data;
            Lpk1.SelectedIndex = 2;
        }
    }
}